<include file="Index/header" />

<div class="container">
	<!-- 轮播图 -->
	<div id="banner" class="container">
		<div id="myCarousel" class="carousel slide" data-ride="carousel">
			<!-- 轮播（Carousel）指标 -->
			<ol class="carousel-indicators">
				<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
				<li data-target="#myCarousel" data-slide-to="1"></li>
				<li data-target="#myCarousel" data-slide-to="2"></li>
			</ol>
			<!-- 轮播（carousel）项目图 建议用高350px -->
			<div class="carousel-inner img-rounded">
				<div class="item active">
					<a href="?m=Home&c=goods&a=item&gi=12"><img style="max-height: 400px;"
							src="__PUBLIC__/images/carouselIMG/c1.jpg" alt="First slide"></a>
					<!-- 为图片添加chaption-->
					<div class="carousel-caption">每天从牙膏开始</div>
				</div>
				<div class="item">
					<a href="?m=Home&c=goods&a=item&gi=16"><img style="max-height: 400px;"
							src="__PUBLIC__/images/carouselIMG/c2.jpg" alt="Second slide"></a>
					<div class="carousel-caption">避免尬尴！成人纸尿裤</div>
				</div>
				<div class="item">
					<a href="?m=Home&c=goods&a=query&gn=lzy"><img style="max-height: 400px;"
							src="__PUBLIC__/images/carouselIMG/c3.jpg" alt="Third slide"></a>
					<div class="carousel-caption">绿之源重磅新品发布</div>
				</div>
			</div>
			<!-- 轮播（carousel）导标 -->
			<a href="#myCarousel" class="carousel-control ctl-left" data-slide="prev">
				<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
				<span class="sr-only">Previous</span>
			</a>
			<a href="#myCarousel" class="carousel-control ctl-right" data-slide="next">
				<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
				<span class="sr-only">Next</span>
			</a>
			<!-- 轮播跳转时间 -->
			<script type="text/javascript">
				$(function () {
					$("#carousel1").addClass("active");
					$('#myCarousel').carousel('cycle');
				});
			</script>
		</div>
	</div>
	<!-- 类型 -->
	<ul class="nav nav-pills">
		<li><a href="?m=Home&c=goods&a=index">最新上架<a></a></li>
		<!-- 接收控制器传来的分类信息，二维数组循环输出 -->
		<foreach name="categoryInfo" item="value">
			<foreach name="value" item="info">
				<li><a href=" ?m=home&c=goods&a=index&ci={$key} ">{$info}<a></li>
			</foreach>
		</foreach>
	</ul>
	<!-- 商品 -->
	<div class="row">
		<foreach name="goodsInfo" item="value">
			<div class="thumbnail col-md-3">
				<a href="?m=Home&c=goods&a=item&gi={$value[goods_id]}"><img alt="300x200"
						src="__PUBLIC__/images/goods/{$value['pic_url']}" /></a>
				<div class="caption">
					<h3>
						{$value['goods_name']}
					</h3>
					<p style="height: 40px; overflow: hidden;">
						{$value['goods_descript']}
					</p>
					<p class="place">￥{$value['goods_price']}</p>
					<p>
						<a class="btn btn-primary" href="?m=Home&c=goods&a=item&gi={$value[goods_id]}">查看</a>
					</p>
				</div>
			</div>
		</foreach>
	</div>
</div>

{$paging}
<include file="Index/footer" />